<div class="wrap">
	<div class="header">
		<span id="return">返回上一级</span>
	</div>
	<!--详情内容-->
	<ul class="order_list">
		<li>
			<label>订单编号</label>
			<span id="orderNum"></span>
		</li>
		<li>
			<label>订单状态</label>
			<span id="orderStatus"></span>
		</li>
		<li>
			<label>付款方式</label>
			<span id="orderPayway"></span>
		</li>
		<li>
			<label>产品总价</label>
			<span id="cpTotal"></span>
		</li>
		<li>
			<label>公司名称</label>
			<span id="khName"></span>
		</li>
		<li>
			<label>联系人员</label>
			<span id="khConperson"></span>
		</li>
		<li>
			<label>联系电话</label>
			<span id="khTel"></span>
		</li>
		<li>
			<label>收货地址</label>
			<span id="khAddress"></span>
		</li>
		<li>
			<label>产品名称</label>
			<span id="cpName"></span>
		</li>
		<li>
			<label>产品数量</label>
			<span id="cpNum"></span>
		</li>
		<li>
			<label>产品规格</label>
			<span id="cpSize"></span>
		</li>
		<li>
			<label>工艺要求</label>
			<span id="cpCraft"></span>
		</li>
		<li>
			<label>交货日期</label>
			<span id="orderDeadline"></span>
		</li>
		<li>
			<label>备注信息</label>
			<span id="orderComment"></span>
		</li>
	</ul>
</div>
<script>
	//返回上一级
	$("#return").on("click",function(){
		$("#main").empty();
		$.ajax({
			type:"get",
			url:"order_list.html",
			success:function(res){
				$("#main").append(res);
			}
		});
	})
	var id = $.cookie("id");
	$("#orderNum").text(id);
　　//订单详情
	$.ajax({
		type:"post",
		url:"http://39.108.164.20/device/SysUser/ListDetails",
		data:{
			order_id:id
		},
		dataType:"json",
		success:function(res){
			var data = res.result.data[0];
			$("#orderStatus").text(data.status);
			$("#orderPayway").text(data.order_payway);
			$("#cpTotal").text(data.cp_total);
			$("#khName").text(data.kh_name);
			$("#khConperson").text(data.kh_conperson);
			$("#khTel").text(data.kh_tel);
			$("#khAddress").text(data.kh_address);
			$("#cpName").text(data.cp_name);
			$("#cpNum").text(data.cp_num);
			$("#cpSize").text(data.cp_size);
			$("#cpCraft").text(data.cp_craft);
			$("#orderDeadline").text(data.order_deadline);
			$("#orderComment").text(data.order_comment);
		}
	});
</script>
